package com.jumper.study.db.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jumper.study.db.dto.StudentLessonDto;
import com.jumper.study.db.dto.StudentLessonSearchDto;
import com.jumper.study.db.dto.StudentLessonStudyDto;
import com.jumper.study.db.model.StudentLesson;

public interface StudentLessonMapper extends BaseMapper<StudentLesson> {
    /**
     * 学员开通课程搜索
     * @param page
     * @param search
     * @return
     */
    IPage<StudentLessonDto> pageListWithStudentAndLesson(IPage<StudentLessonDto> page, StudentLessonSearchDto search);

    /**
     * 学员课程列表
     * @param page
     * @param accountId
     * @param expired
     * @return
     */
    IPage<StudentLessonStudyDto> pageListWithLesson(IPage<StudentLessonStudyDto> page, Long accountId, Boolean expired);
}
